<?php
/**

 * @version $Id: default.php,v 1.4 2009/06/04 20:13:37 dgravato Exp $

 * @package    sketchup

 * @subpackage 

 * @author     Chris Borkowski {@link http://www.guggenheim.org}

 * @author     Created on 05-May-2009

 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>

<div id="sketchup_message_recent">
<!--<p><strong>Please note:</strong>&nbsp;Voting is now closed. Be sure to check back on 
October 21 when the winner from the following ten finalists will be 
announced!</p> -->
 

</div>

<?php if ($this->already_voted == 1): ?>
  <div id="already_voted">
    <p>Thank you for your selection, but you are only permitted to vote once.</p>
  </div>  
<?php endif ?>

<form action="index.php" method="post">
<?php $k = 0; ?>
<?php foreach ($this->list as $l): ?>
  <div id="sketchup_search_list_vote">
  <table> 
  <tr>
    <td colspan="3" align="middle" valign="middle"></td>
  </tr>

  <tr>
    <td width="180" valign="top">
    <div id="list_picture">
      <a href="<?php echo $l->link; ?>">
      <img src="<?php echo str_replace('/images/content/sketchup/uploads/', 'images/content/sketchup/site/', $l->image1); ?>" width="160" height="112"/>
      </a>
    </div>
    </td>
    <td width="485" valign="top">
      <span id="sketchup_title">
        <a href="<?php echo $l->link; ?>"><?php echo $l->p_title; ?></a>
      </span><br/>
      <span id="sketchup_designer">
        By <?php echo $l->f_name; ?>&nbsp;<?php echo $l->l_name; ?>
      </span><br/>
      <span id="sketchup_designer_details">
        From:&nbsp;<?php echo $l->city; ?>,&nbsp;<?php echo $l->country; ?><br/>
        Shelter location:&nbsp;<?php echo $l->location; ?><br/>
       
      </span>
      <span id="finalist_dot">
        <?php if ($l->finalist == 1): ?>
          <img src="<?php echo JURI::base(); ?>/components/com_sketchup/assets/images/finalist_dot.jpg"/> FINALIST
        <?php endif ?>
      </span>
     <span id="votes"><?php echo $l->votes; ?>&nbsp;votes</span>
  </td>


  <td width="15" align="left" valign="middle" class="<?php echo "row$k"; ?>">

  <label>
     <!--<input type="radio" name="sketchup_id" id="voted" value="<?php echo $l->id ?>" 
/> -->
      <br />
       <!--design dept ask to be removed -->
      <!--vote -->
    </label>
    </td>
  </tr>  

  </table>

  </div>
  <?php $k = 1 - $k; ?>
<?php endforeach ?>

<!--<table width="100%">
<tr>
  <td colspan="3" align="right" valign="middle">
    <label>
      <input type="submit" name="vote" id="submit" value="vote" />
      <input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid', 0); ?>" />
      <input type="hidden" name="task" value="vote" /> 
      <input type="hidden" name="option" value="<?php echo $option; ?>" /> 
    </label>
  </td>
</tr>
</table> -->
</form>

  <div id="bottom_links">
  <table width="100%">
    <tr>
      <td>
      	<div id="makeshare">
      	<!-- AddThis Button BEGIN -->
      	<a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=guggenheimmuseum"></script>
      	<!-- AddThis Button END -->
        </div>
      </td> 
    </tr>  
  </table>
</div>




